from flask import Flask
from flask import render_template
from flask import request
from flask import flash
from flask import redirect
from flask import url_for
from flask import Blueprint

#from routes.api import Api


app = Flask(__name__)
# 设置 secret_key 来使用 flask 自带的 session
# 这个字符串随便你设置什么内容都可以
app.secret_key = '!isdfjBHjdfiajsdf89283289rjwfsamlfkI(")(#(J(")(#N)")))")'

#app.register_blueprint(todo_routes, url_prefix='/api/')


# 运行代码
if __name__ == '__main__':
    config = dict(
        debug=True,
        host='0.0.0.0',
        port=80,
    )
    app.run(**config)
